From 1400644069d275c37d2922c2e20041f6fcb5f8eb Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 15 May 2011 13:27:19 +0200 Subject: [PATCH] reftests: Add a test ensuring selectors don't match children Previously, the selector "Foo" would not only match Foo widgets, but also all widgets that are descendants of Foo. --- tests/reftests/Makefile.am | 3 +++ tests/reftests/css-match-exact.css | 3 +++ tests/reftests/css-match-exact.ref.ui | 13 ++++++++++++ tests/reftests/css-match-exact.ui | 30 +++++++++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 tests/reftests/css-match-exact.css create mode 100644 tests/reftests/css-match-exact.ref.ui create mode 100644 tests/reftests/css-match-exact.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 216888507c..44d400ee55 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -35,6 +35,9 @@ EXTRA_DIST += \ css-match-descendant-later.css \ css-match-descendant-later.ref.ui \ css-match-descendant-later.ui \ + css-match-exact.css \ + css-match-exact.ref.ui \ + css-match-exact.ui \ css-match-name.css \ css-match-name.ref.ui \ css-match-name.ui \ diff --git a/tests/reftests/css-match-exact.css b/tests/reftests/css-match-exact.css new file mode 100644 index 0000000000..c84ffe99a9 --- /dev/null +++ b/tests/reftests/css-match-exact.css @@ -0,0 +1,3 @@ +GtkGrid { + background-color: purple; +} diff --git a/tests/reftests/css-match-exact.ref.ui b/tests/reftests/css-match-exact.ref.ui new file mode 100644 index 0000000000..2f24fa197b --- /dev/null +++ b/tests/reftests/css-match-exact.ref.ui @@ -0,0 +1,13 @@ + + + + + 10 + 10 + False + popup + + + + + diff --git a/tests/reftests/css-match-exact.ui b/tests/reftests/css-match-exact.ui new file mode 100644 index 0000000000..1c39ba740e --- /dev/null +++ b/tests/reftests/css-match-exact.ui @@ -0,0 +1,30 @@ + + + + + 10 + 10 + False + popup + + + True + False + + + 10 + 10 + True + False + + + 0 + 0 + 1 + 1 + + + + + + -- 2.30.2